package com.klangner.go.app.strategy;

import java.util.Vector;

public class TreeNode implements ITreeNode {

  public TreeNode(GoNodeInfo nodeContent, ITreeNode parentNode) {
    content = nodeContent; 
	  parent = parentNode;
    children = new Vector(); 
  }

  public GoNodeInfo getContent() {
    return content;  
  }

  public ITreeNode getParent() {
    return parent;
  }
  
  public Vector getChildren() {
    return children;
  }

  public boolean isLeaf() {
    return (children.size() < 1);
  }

  protected GoNodeInfo content;
  protected ITreeNode parent;
  protected Vector children;
}
